package com.data.codegenerate.database;

import com.data.codegenerate.database.util.DbConvertDef;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class SqlHelperDyn {
    private static final Logger a = LoggerFactory.getLogger(SqlHelperDyn.class);

    public static boolean a(String str) {
        return a(str, DbConvertDef.c) || a(str, DbConvertDef.k) || a(str, DbConvertDef.l) || a(str, DbConvertDef.w) || a(str, DbConvertDef.A);
    }

    public static boolean b(String str) {
        return a(str, DbConvertDef.n) || a(str, DbConvertDef.d) || a(str, DbConvertDef.g) || a(str, DbConvertDef.t);
    }

    public static boolean c(String str) {
        return a(str, DbConvertDef.e) || a(str, DbConvertDef.r) || a(str, DbConvertDef.s);
    }

    public static boolean d(String str) {
        return a(str, DbConvertDef.f) || a(str, DbConvertDef.v) || a(str, DbConvertDef.z);
    }

    private static boolean a(String str, String str2) {
        if (str.toLowerCase().contains(str2)) {
            return true;
        }
        return false;
    }
}
